﻿namespace DeltaGroup.WheelOfJeopardy.UI.ViewModel
{
    using DeltaGroup.WheelOfJeopardy.Model;

    public class SelectableChallenge
    {
        #region Constructors

        /// <summary>
        /// Initializes a new instance of the <see cref="SelectableChallenge"/> class.
        /// </summary>
        /// <param name="challenge">The challenge.</param>
        public SelectableChallenge(Challenge challenge)
        {
            InnerChallenge = challenge;
        }

        #endregion Constructors

        #region Properties

        /// <summary>
        /// Gets or sets the inner challenge.
        /// </summary>
        /// <value>The inner challenge.</value>
        public Challenge InnerChallenge
        {
            get; set;
        }

        /// <summary>
        /// Gets or sets a value indicating whether this instance is selected.
        /// </summary>
        /// <value>
        /// 	<c>true</c> if this instance is selected; otherwise, <c>false</c>.
        /// </value>
        public bool IsSelected
        {
            get; set;
        }

        /// <summary>
        /// Gets the point.
        /// </summary>
        /// <value>The point.</value>
        public int Point
        {
            get { return InnerChallenge.Point; }
        }

        #endregion Properties
    }
}